<div class="operateBox">
	<div id="l_toolbar"></div>
    <h2><?php echo $this->title?></h2>
    <form class="search" action="" method="post">
  	  <span class="s-field"><label>帐号</label><input type="search" name="s[name]" value="<?php e_h($s['name'])?>"  /></span>
      <span class="s-field"><?php html::select('name="s[state]"', $state, $s['state'], lang::g('select state'))?></span>
      <span class="s-field"><?php html::selectR('name="s[grade_id]"', YF_f::initC('\c\user\grade')->get(), $s['grade_id'], lang::g('select grade'))?></span>
      <input type="submit" class="sb" value="搜索"  />           
    </form>
</div>

<table class="ta-h" width="100%" id="dataList">
  <tr>
    <th>帐号</th>
    <th>姓名（性别)</th>
    <th>邮箱</th>
    <th>注册时间</th>
    <th>最近登入</th>
    <th>预约日期</th>
    <th>状态</th>
  </tr>
  <?php foreach($res as $v){ $expiry = arr_decode($v['expiry']);?>
  <tr class="sl-i" i_ID="<?php echo $v['id'];?>">
    <td><?php e_h($v['name']);?>(<?php echo $v['id'];?>)</td>
    <td><?php e_h($v['compellation']);  if($v['sex'])echo ' '.$v['sex'].''?></td>
    <td><?php e_h($v['email']);?></td>
    <td><?php echo $v['reg_time'];?></td>
    <td><?php if($v['online_time'])echo time_farmatStr($v['online_time']);?></td>
    <td><?php e_h($expiry['date']);?></td>
    
    <td><?php e_h($state[$v['state']]);?></td>
  </tr>
  <?php }?>
</table>
<?php $this->loadTemplate('paging');?>

<script type="text/javascript">
var c_U = '?u=cuser\\a', dTA = Table_Ad.init('#dataList',{u_del: c_U+'-fdel&id=', u_view: c_U+'-fpost&id='}).creSelect();							
Toolbar.init('#l_toolbar').addBut('new').addBut('del');
</script>